"""
Get cores
"""

import multiprocessing
from typing import Union


def get_cores() -> Union[float, int]:
    """_summary_
    Returns:
        Union[float, int]: _description_
    """
    total_cores = multiprocessing.cpu_count()
    return int(total_cores * 0.8)
